<?php


namespace api\web\model;
use think\Model;

class NavModel extends Model
{
    protected $name = 'navigation';
    public function index(){
        return $this->hasMany(NavModel::class,'parent_id','id');
    }
}
